package com.github.panchitoboy.shiro.wechat.repository;

import org.springframework.stereotype.Service;

@Service
public interface WechatUserRepository {

    public byte[] generateSharedKey();

    public long getExpirationDate();

    public String getIssuer();

    public byte[] getSharedKey();

    public WechatTokenResponse createToken(UserInfo userInfo);

    public String createToken(Object userId);

    public boolean validateToken(String token) ;
    
    public String getSubject(String token);
}
